package com.qf.mapper;


import com.qf.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    @Select("select * from tb_user where user_name = #{username}")
    User findByName(@Param("username") String name);

    @Insert("insert into tb_user (user_name,user_password,user_salt) value(#{username},#{password},#{key})")
    int addUser(@Param("username") String username,@Param("password") String password,@Param("key")String key);
}
